<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Index Page</title>
	<script type="text/javascript">
		function doSubmit() {
			document.infos.submit();
			// alert("u");
			return false;
		}
	</script>
	
</head>
<body>
	<form name="infos" action="HelloStruts.do" method="POST">
		請輸入你的名字: <input type="text" name="name" /><br />
		請輸入你的身高: <input type="text" name="height" />公分<br />
		請輸入你的體重: <input type="text" name="weight" />公斤<br />
		<input type="submit" value="確認" />
	</form>
	
	<html:form action="HelloStruts" method="POST">
		請輸入你的電話: <html:text property="telNum"></html:text>
		<html:submit onclick="doSumbit();" />
	</html:form>
</body>
</html>